package com.cy.stone.system.infrastructure.database.table;

import com.mybatisflex.core.query.QueryColumn;
import com.mybatisflex.core.table.TableDef;

/**
 * 字典数据表 表定义层。
 *
 * @author Wings
 * @since 2023-12-18
 */
public class DictDataTableDef extends TableDef {

    /**
     * 字典数据表
     */
    public static final DictDataTableDef DICT_DATA_ENTITY = new DictDataTableDef();

    /**
     * 字典主键
     */
    public final QueryColumn ID = new QueryColumn(this, "id");

    /**
     * 备注
     */
    public final QueryColumn REMARK = new QueryColumn(this, "REMARK");

    /**
     * 状态
     */
    public final QueryColumn STATUS = new QueryColumn(this, "STATUS");

    /**
     * 版本号
     */
    public final QueryColumn VERSION = new QueryColumn(this, "VERSION");

    /**
     * 创建人
     */
    public final QueryColumn CREATE_BY = new QueryColumn(this, "CREATE_BY");

    /**
     * 字典编码
     */
    public final QueryColumn DICT_CODE = new QueryColumn(this, "dict_code");

    /**
     * 字典排序
     */
    public final QueryColumn DICT_SORT = new QueryColumn(this, "dict_sort");

    /**
     * 字典类型
     */
    public final QueryColumn DICT_TYPE = new QueryColumn(this, "dict_type");

    /**
     * 更新人
     */
    public final QueryColumn UPDATE_BY = new QueryColumn(this, "UPDATE_BY");

    /**
     * 字典键值
     */
    public final QueryColumn DICT_VALUE = new QueryColumn(this, "dict_value");

    /**
     * 逻辑删除标识【0-未删除 1-已删除】
     */
    public final QueryColumn IS_DELETED = new QueryColumn(this, "IS_DELETED");

    /**
     * 创建时间
     */
    public final QueryColumn CREATE_TIME = new QueryColumn(this, "CREATE_TIME");

    /**
     * 更新时间
     */
    public final QueryColumn UPDATE_TIME = new QueryColumn(this, "UPDATE_TIME");

    /**
     * 所有字段。
     */
    public final QueryColumn ALL_COLUMNS = new QueryColumn(this, "*");

    /**
     * 默认字段，不包含逻辑删除或者 large 等字段。
     */
    public final QueryColumn[] DEFAULT_COLUMNS = new QueryColumn[]{ID, DICT_CODE, DICT_SORT, DICT_VALUE, DICT_TYPE, CREATE_TIME, CREATE_BY, UPDATE_TIME, UPDATE_BY, VERSION, STATUS, REMARK};

    public DictDataTableDef() {
        super("", "ST_DICT_DATA");
    }

}
